home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.uwo.ca!usenet
- From: witold@mustang.uwo.ca (Witold A. Batorowicz)
- Newsgroups: comp.lang.c
- Subject: UNIX C experts
- Date: 10 Mar 1996 09:20:45 GMT
- Organization: IBM
- Message-ID: <4hu6td$752@falcon.ccs.uwo.ca>
- NNTP-Posting-Host: ts3-13.slip.uwo.ca
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Authenticated: witold@ts3-13.slip.uwo.ca
- X-Newsreader: WinVN 0.99.7
-
- Hello!
- I actually have two questions:
- 1. How do we debug a program written in C with either dbx or gdb that has
- arguments passed to the main(). Eg. Suppose my program is called test,
- therefore I would call it: test arg1 arg2. I tried gdb test arg1 arg2 but it
- doesn't work, and the documentation is not very intuitive...;-(
-
- 2. I tired my program with gdb and dbx debuggers. They work (see the symbol
- table). When I try my program with xxgdb I get the message that the symbol
- table is not there. Go figure. By the way, I did compile my source with -g
- switch.
-
- If you can help, please e-mail me at witold@mustang.uwo.ca
- Thank you in advance
- Witold
-
-